home *** CD-ROM | disk | FTP | other *** search
- On 08-Mar-98, mg40067 smashed the keyboard with:
- > Here my problem. short example
- >
- > --text.txt look like this--
- > 5
- > 8
- > --end text
- >
- > r$="text.txt"
- > open in 1,r$ : a=lof(1) : close 1
- > reserve as work 16,a
- > bload r$,16
- > abc=start(16)
- > c1=peek(abc) : inc abc : c2=peek(abc)
- > print c1 : rem gives the ascii value
- > print chr$ : show numer 5
- >
- > Ok how will do to make amos to understand that i want to threat this
- > as a number instead of an ascii value?
- >
- > Is there anyway to convert that 5 (53) so
- > i can use it like this
- >
- > tal=c1+c2
- > print tal : want it to be 13
- >
- > please help me...
-
- Just one thing, You have shown in your text that you have a line-feed
- between the numbers, if you have that you should use this way to get
- the data:
-
- S=Start(BNK)
- C1$=Peek$(S,100,Chr$(10)) : Add S,Len(C1$)+1
- C2$=Peek$(S,100,Chr$(10))
- C1=Val(C1$) : C2=Val(C2$)..
-
- If you have number as you write above then this should work:
- C_VALUE=Val(Chr$(C_ASCII))
- --
- Kind regards from
- ______________________________________________________________________________
- /_ __/ __ / __ /\ ___\ __ \__ _\ aka. JENS VANG PETERSEN
- / / / /_/ / ____/ \ \___\ __ \ \ \ top_cat@post8.tele.dk
- /_/ /_____/_/ \_____\_\ \_\ \_\
- ------------------------------------------------------------------------------
- http://home8.inet.tele.dk/top_cat/
- -+- Home of 'The Ultimate Extension list' for AMOS TC & AMOS PRO -+-
- -+- SUPPORT - AMOS - AMIGA - AQUA -+-
- ------------------------------------------------------------------------------
- I know not with what weapons World War III will be fought, but World War IV
- will be fought with sticks and stones.
- -- Albert Einstein
- ------------------------------------------------------------------------------
-
-
-